import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios';

Vue.prototype.axios = axios;

//完整引入Element
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

Vue.use(ElementUI);
Vue.prototype.axios = axios;
const http = axios.create({
    timeout: 1000 * 30,
    withCredentials: true,
    headers: {
        'Content-Type': 'application/json'
    }
})
Vue.prototype.$axios = http
//全局配置
import Element from 'element-ui';

Vue.use(Element, {size: 'small', zIndex: 3000});
Vue.config.productionTip = false
// event Bus 用于无关系组件间的通信。
Vue.prototype.$bus = new Vue();
new Vue({
    router,
    store,
    render: h => h(App),
    data: function () {
        return {
            isCollapse1: false,
            fullScreenStatus: {} // 定义的变量
        }
    }
}).$mount('#app')